package com.my.cd.command;

/**
 * 电器对象：灯
 */
public class Light {

    private String loc = "";

    public Light(String loc) {
        this.loc = loc;
    }

    public void on() {

        System.out.println(loc + " on");
    }

    public void off() {

        System.out.println(loc + " off");
    }

}
